package com.lly.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Scope;

import java.io.IOException;

@Configuration
@Import(ScreensConfiguration.class)
//@ImportResource("classpath:applicationContext-security.xml")
public class AppConfiguration {
    @Bean
    CustomerModel customerModel() throws IOException {
        CustomerModel customerModel = new CustomerModel();
//        customerModel.setRestTemplate(restTemplate());
//        customerModel.loadData();
        return customerModel;
    }

//    @Bean
//    RestTemplate restTemplate() {
//        RestTemplate restTemplate = new RestTemplate();
//        restTemplate.setMessageConverters(Collections.<HttpMessageConverter<?>>singletonList(new MappingJacksonHttpMessageConverter()));
//        return restTemplate;
//    }
}
